package com.chenwy.example.visible.pkg2;

import com.chenwy.example.visible.pkg1.ProtectedVisible;

public class ProtectedChildVisible extends ProtectedVisible {
    {
        //异包子类可见
        System.out.println(this.prop1);
        System.out.println(this.prop2);
    }

    public static void main(String[] args) {
        //异包子类可见
        ProtectedChildVisible protectedChildVisible =  new ProtectedChildVisible();
        System.out.println(protectedChildVisible.prop1);
        System.out.println(protectedChildVisible.prop2);
    }
}
